package gr.uop.cst.context.adaptation;

import java.io.Serializable;

/**
 *
 * @author Ioannis Bourlakos <mi49@uop.gr>
 */
public abstract class ContextAdaptation implements Serializable {
    
    private ContextRule rule;
    private Action action;
    
    protected ContextAdaptation(Action action) {
        this.action = action;
    }
    
    public abstract void accept(ContextAdaptationGenerator cag);

    void setContextRule(ContextRule r) {
        this.rule = r;
    }
    
    public ContextRule getContextRule() {
        return this.rule;
    }
    
    
    public Action getAction() {
        return this.action;
    }
    
}
